package controller

import (
	"RestaurantApp/service"
	"RestaurantApp/utils"
	"github.com/gin-gonic/gin"
)

type FoodCategoryController struct {
}

func (this *FoodCategoryController) Routers(r *gin.Engine) {
	foodCategoryGroup := r.Group("/api")
	foodCategoryGroup.GET("/food_category", this.getCategory)
}

func (this *FoodCategoryController) getCategory(ctx *gin.Context) {

	categoryService := service.CategoryService{}
	categories := categoryService.GetCategory()
	utils.Success(ctx, categories)

}
